package top.houry.grpc.service;

import io.grpc.Server;
import io.grpc.ServerBuilder;

import java.io.IOException;

public class GrpcServer {

    public static void main(String[] args) throws IOException, InterruptedException {
        Server start = ServerBuilder.forPort(9999)
                .addService(new GreeterImpl())
                .build()
                .start();

        start.awaitTermination();

    }
}
